﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_ArticleImages : System.Web.UI.UserControl
{
    public static string articleid = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

        }
        if (Request.QueryString["ArticleID"] != null)
        {
            articleid = Request.QueryString["ArticleID"];

        }

        if (!string.IsNullOrEmpty(articleid))
        {
            dtlImages.DataSource = dmsFunction.getArticleImagesbyArticleID(int.Parse(articleid)).OrderBy(t=>t.DisplayOrder);
            dtlImages.DataBind();
        }

    }

    protected string GetLoginPostBack()
    {
        return Page.ClientScript.GetPostBackEventReference(btnpob, string.Empty);
    }
}